package com.sjtu.vfact.exception;

import java.awt.Container;

import javax.swing.JOptionPane;

public class NoDocumentLoadedException extends Exception{

	private static final long serialVersionUID = 5955925084323234880L;

	public void printError(Container frame){
		String title = "No Document Loaded";
		String message = "No document is loaded. Please load it first!!";
		JOptionPane.showMessageDialog(frame, message, title, JOptionPane.INFORMATION_MESSAGE);
	}
	
}
